package cn.zn.modules.budget.his.controller;

import cn.zn.framework.common.utils.Result;
import cn.zn.modules.budget.his.entity.vo.BudgetInfoFreezsVO;
import cn.zn.modules.budget.his.service.BudgetInfoFreezsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("budget/his/budgetinfofreezs")
public class BudgetInfoFreezsController {

    @Autowired
    private BudgetInfoFreezsService budgetInfoFreezsService;

    @RequestMapping("freezsList/{sumId}")
    public Result<List<BudgetInfoFreezsVO>> freezsList(@PathVariable String sumId) {
        List<BudgetInfoFreezsVO> freezs = budgetInfoFreezsService.findFreezs(sumId);
        return Result.ok(freezs);
    }
}
